package com.xishu.entity.foodPandaOrder;

import com.xishu.annotation.dao.FieldMapping;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Lob;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

public class Price implements Serializable {

    private static final long serialVersionUID = 4991053021769150397L;
    @Transient
    @ApiModelProperty(value = "各种费用")
    @FieldMapping(desField = "deliveryFeesJson",serialize = true,isObject = true)
    private List<DeliveryFees> deliveryFees;


    @Lob
    @Column(columnDefinition = "MEDIUMTEXT")
    @ApiModelProperty(value = "各种费用")
    @FieldMapping(desField = "deliveryFees",serialize = false,isObject = true,genericType = "com.xishu.entity.foodPandaOrder.DeliveryFees")
    private String deliveryFeesJson;

    @ApiModelProperty(value = "总计费用")
    private String grandTotal;

    @ApiModelProperty(value = "骑手取餐时需要支付餐厅的费用，只在平台骑手负责配送时用到")
    private String payRestaurant;

    @ApiModelProperty(value = "客户给骑手的小费")
    private String riderTip;

    @ApiModelProperty(value = "小计费用，除去折扣，加上税费等")
    private String subTotal;

    @ApiModelProperty(value = "税费")
    private String vatTotal;

    public List<DeliveryFees> getDeliveryFees() {
        return deliveryFees;
    }

    public void setDeliveryFees(List<DeliveryFees> deliveryFees) {
        this.deliveryFees = deliveryFees;
    }

    public String getGrandTotal() {
        return grandTotal;
    }

    public void setGrandTotal(String grandTotal) {
        this.grandTotal = grandTotal;
    }

    public String getPayRestaurant() {
        return payRestaurant;
    }

    public void setPayRestaurant(String payRestaurant) {
        this.payRestaurant = payRestaurant;
    }

    public String getRiderTip() {
        return riderTip;
    }

    public void setRiderTip(String riderTip) {
        this.riderTip = riderTip;
    }

    public String getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(String subTotal) {
        this.subTotal = subTotal;
    }

    public String getVatTotal() {
        return vatTotal;
    }

    public void setVatTotal(String vatTotal) {
        this.vatTotal = vatTotal;
    }

    public String getDeliveryFeesJson() {
        return deliveryFeesJson;
    }

    public void setDeliveryFeesJson(String deliveryFeesJson) {
        this.deliveryFeesJson = deliveryFeesJson;
    }
}
